import { Material } from './Material'
// 三角函数纹理
export class TrigonometricMaterial extends Material {
    readonly type: string
    brightness: number
    speed:number
    width: number
    constructor(brightness: number = 100.0, speed: number = 1,width: number = 1) {
        super()
        this.type = 'TrigonometricMaterial'
        this.brightness = brightness
        this.speed = speed
        this.width = width
    }
    // 亮度
    setbrightness(param: number) {
        this.brightness = param
    }
    // 速度
    setspeed(speed: number) {
        this.speed = speed
    }
    // 宽度
    setwidth(width: number) {
        this.width = width
    }
}